Optimal. Leaf size=8 \[ \text {Li}_2\left (-\frac {a}{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 12, normalized size of antiderivative = 1.50, number of steps
used = 1, number of rules used = 1, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2497}
\begin {gather*} \text {PolyLog}\left (2,1-\frac {a+x}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2497
Rubi steps
\begin {align*} \int \frac {\log \left (\frac {a+x}{x}\right )}{x} \, dx &=\text {Li}_2\left (1-\frac {a+x}{x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(34\) vs. \(2(8)=16\).
time = 0.00, size = 34, normalized size = 4.25 \begin {gather*} -\log \left (-\frac {a}{x}\right ) \log \left (\frac {a+x}{x}\right )-\text {Li}_2\left (-\frac {-a-x}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.44, size = 9, normalized size = 1.12
method | result | size |
derivativedivides | \(\dilog \left (1+\frac {a}{x}\right )\) | \(9\) |
default | \(\dilog \left (1+\frac {a}{x}\right )\) | \(9\) |
risch | \(\dilog \left (1+\frac {a}{x}\right )\) | \(9\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 59 vs.
\(2 (7) = 14\).
time = 0.37, size = 59, normalized size = 7.38 \begin {gather*} -{\left (\log \left (a + x\right ) - \log \left (x\right )\right )} \log \left (x\right ) + \log \left (a + x\right ) \log \left (x\right ) - \frac {1}{2} \, \log \left (x\right )^{2} + \log \left (x\right ) \log \left (\frac {a + x}{x}\right ) - \log \left (x\right ) \log \left (\frac {x}{a} + 1\right ) - {\rm Li}_2\left (-\frac {x}{a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 11, normalized size = 1.38 \begin {gather*} {\rm Li}_2\left (-\frac {a + x}{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\log {\left (\frac {a}{x} + 1 \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 68 vs.
\(2 (7) = 14\).
time = 4.21, size = 68, normalized size = 8.50 \begin {gather*} -\frac {a^{3} {\left (\frac {1}{\frac {a + x}{x} - 1} - \log \left (\frac {{\left | a + x \right |}}{{\left | x \right |}}\right ) + \log \left ({\left | \frac {a + x}{x} - 1 \right |}\right )\right )} + \frac {a^{3} \log \left (\frac {a + x}{x}\right )}{{\left (\frac {a + x}{x} - 1\right )}^{2}}}{2 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.31, size = 8, normalized size = 1.00 \begin {gather*} \mathrm {polylog}\left (2,-\frac {a}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________